package com.maiji.cloud.request.shopingmall;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

@NoArgsConstructor
@Data
@Accessors(chain=true)
public class OrderSubmitReqDto {

    @ApiModelProperty(value="订单数据")
    private OrderSubmitReqData data;

    @NoArgsConstructor
    @Data
    @Accessors(chain=true)
    public static class OrderSubmitReqData {

        @ApiModelProperty(value="购物车ID[]")
        private List<String> shopingCartIds;

        @ApiModelProperty(value="收货地址ID")
        private String shopingAddressId;

        @ApiModelProperty(value="快递ID：非必填，用户选择快递方式时上传")
        private String deliveryId;

        @ApiModelProperty(value="备注")
        private String remarks;

        @ApiModelProperty(value="是否减肥基金")
        private Boolean fundUsable;

        @ApiModelProperty(value="是否使用积分抵现")
        private Boolean integralUsable;

        @ApiModelProperty(value="是否使用优惠券")
        private Boolean couponUsable;

        @ApiModelProperty(value="优惠卷兑换记录ID")
        private String exchangeId;

        @ApiModelProperty(value="支付方式：0-砍价免费拿，1-余额支付，2-微信支付 ，3-支付宝支付，4，积分兑换")
        private Integer payType;

    }

}
